package com.example.blogdemo.common.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//@AllArgsConstructor
//@NoArgsConstructor
@Data
public class BlogException extends RuntimeException{

    private int code;
    private String errMsg;


    public BlogException(int code, String errMsg) {
        this.code = code;
        this.errMsg = errMsg;
    }

    public BlogException( String errMsg) {

        this.errMsg = errMsg;
    }
}
